Fixes #14. Thanks to @mqus for solution. Taken from https://github.com/PrivateBin/PrivateBin/pull/193#issuecomment-480262590