Bug #3128: noVNC not working properly in Ruby 1.8.7

(cherry picked from commit 01d308c171a1f9b7b4d921ca69cdf2e7d3c0f283)